home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.4)
-
- from test import test_support
- from test import test_multibytecodec_support
- import unittest
-
- class Test_GB2312(test_multibytecodec_support.TestBase, unittest.TestCase):
- encoding = 'gb2312'
- tstring = test_multibytecodec_support.load_teststring('gb2312')
- codectests = (('abc\x81\x81\xc1\xc4', 'strict', None), ('abc\xc8', 'strict', None), ('abc\x81\x81\xc1\xc4', 'replace', u'abc�聊'), ('abc\x81\x81\xc1\xc4\xc8', 'replace', u'abc�聊�'), ('abc\x81\x81\xc1\xc4', 'ignore', u'abc聊'), ('\xc1d', 'strict', None))
-
-
- class Test_GBK(test_multibytecodec_support.TestBase, unittest.TestCase):
- encoding = 'gbk'
- tstring = test_multibytecodec_support.load_teststring('gbk')
- codectests = (('abc\x80\x80\xc1\xc4', 'strict', None), ('abc\xc8', 'strict', None), ('abc\x80\x80\xc1\xc4', 'replace', u'abc�聊'), ('abc\x80\x80\xc1\xc4\xc8', 'replace', u'abc�聊�'), ('abc\x80\x80\xc1\xc4', 'ignore', u'abc聊'), ('\x834\x831', 'strict', None))
-
-
- class Test_GB18030(test_multibytecodec_support.TestBase, unittest.TestCase):
- encoding = 'gb18030'
- tstring = test_multibytecodec_support.load_teststring('gb18030')
- codectests = (('abc\x80\x80\xc1\xc4', 'strict', None), ('abc\xc8', 'strict', None), ('abc\x80\x80\xc1\xc4', 'replace', u'abc�聊'), ('abc\x80\x80\xc1\xc4\xc8', 'replace', u'abc�聊�'), ('abc\x80\x80\xc1\xc4', 'ignore', u'abc聊'), ('abc\x849\x849\xc1\xc4', 'replace', u'abc�聊'))
- has_iso10646 = True
-
-
- def test_main():
- suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(Test_GB2312))
- suite.addTest(unittest.makeSuite(Test_GBK))
- suite.addTest(unittest.makeSuite(Test_GB18030))
- test_support.run_suite(suite)
-
- if __name__ == '__main__':
- test_main()
-
-